<?
    require_once("base/BaseRecipientForm.php");

    class RecipientForm extends BaseRecipientForm {

        public function __construct() {
            parent::__construct();
        }

        public function validate() {

            $errors = parent::validate();

            if(count($this->recipients) == 0 && count($this->received) == 0)
                $errors->add(ActionMessage::GLOBAL_MESSAGE,
                    new ActionMessage("list.error.required.items", true));

            return $errors;
        }

    }
?>